package org.supreme.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.supreme.domain.User;
import org.supreme.fegin.HystrixClientFallbackFactory;


@FeignClient(name="user-server", fallbackFactory=HystrixClientFallbackFactory.class)
public interface PayService {
    @GetMapping("/user/{id}")
    User getUserById(@PathVariable("id") Long id);

}
